<% if not @post then %>
<div id="caption" align="center">
	<h1>Oops! You don't have any posts to show!</h1>
</div>
<% else %>
<% @post.photos.each do |photo| %>
	<h3><%= photo.title %></h3>
	<div id="image">
		<%= image_tag(photo.image_url) %>
	</div>
	<div id ="caption">
		<p>
			<%= photo.caption %>
		</p>	
	</div>
<% end %>

<div id ="comments">
	<% @post.comments.each do |comment| %>
		<b><%= comment.name %></b> on <%= comment.date %>.
		<p><%= comment.body %></p>
	<% end %>
</div>
<% end %>